package br.com.knowledge.view.struts.actions;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.ResultPath;

import com.opensymphony.xwork2.ActionSupport;

@Namespace("/")
@ResultPath("/")
public class PagesAction extends ActionSupport {
	
	
	private static final long serialVersionUID = 1L;

	@Action(value = "cadastra-usuario-form", results = {
			@Result(name = SUCCESS, location = "/pages/cadastraUsuario.jsp"),
			@Result(name = ERROR, location = "/pages/cadastraUsuario.jsp"),
			@Result(name = INPUT, location = "/pages/cadastraUsuario.jsp") })	
	public String criarObjeto(){
		return SUCCESS;
	}
}
